package combinationPattern;

import java.awt.*;

public class Circle extends BaseShape{
    public int radius;
    public Circle(int i, int x, int y, Color color) {
        super(x, y, color);
    }

    @Override
    public int getWidth() {
        return radius*2;
    }

    @Override
    public int getHight() {
        return radius*2;
    }

    @Override
    public void paint(Graphics graphics) {
        super.paint(graphics);
        graphics.drawOval(x,y,getHight()-1,getWidth()-1);
    }
}
